#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
-------------------------------------------------
   File Name：    usage.py
   Author :       zyq
   CreateDate：   2024/9/13 16:54
   Remark :  Python descriptor
-------------------------------------------------
"""


# from selenium_manager import SeleniumManager
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service


def setup_without_selenium_manager():
    chrome_service = Service(executable_path='path/to/chrome.exe')
    driver = webdriver.Chrome(chrome_service)
    return driver


def setup_with_selenium_manager():
    driver = webdriver.Chrome()
    return driver


if __name__ == '__main__':
    driver = setup_with_selenium_manager()

    driver.get('https://www.baidu.com')
